import request from '@/utils/request'

// 查询公海客户列表
export function listCrmsea(query) {
  return request({
    url: '/system/crmsea/list',
    method: 'get',
    params: query
  })
}

// 查询公海客户详细
export function getCrmsea(id) {
  return request({
    url: '/system/crmsea/' + id,
    method: 'get'
  })
}

// 新增公海客户
export function addCrmsea(data) {
  return request({
    url: '/system/crmsea',
    method: 'post',
    data: data
  })
}

// 修改公海客户
export function updateCrmsea(data) {
  return request({
    url: '/system/crmsea',
    method: 'put',
    data: data
  })
}

// 删除公海客户
export function delCrmsea(id) {
  return request({
    url: '/system/crmsea/' + id,
    method: 'delete'
  })
}
